package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 实时班次
 * @date 2021年7月16日
 *
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "realtime_dispatch")
@org.hibernate.annotations.Table(appliesTo = "realtime_dispatch",comment="pbtp-2-实时班次")
public class RealtimeDispatch {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@Column(columnDefinition="varchar(100) COMMENT '车辆总数'")
	private String vehicleTotalNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计上线车辆数'")
	private String accVehicleOnlineNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日上线率'")
	private String onlineRatio;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计计划班次'")
	private String accPlanShiftNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计执行班次'")
	private String accExecuteShiftNum;
	@Column(columnDefinition="varchar(100) COMMENT '当日班次执行率'")
	private String executeRatio;
	@Column(columnDefinition="varchar(100) COMMENT '当年日均营运班次'")
	private String avgShiftByYear;
	@Column(columnDefinition="varchar(100) COMMENT '当日高峰运送速度'")
	private String peakAvgSpeed;
	@Column(columnDefinition="varchar(100) COMMENT '当日高峰运送速度同比'")
	private String peakAvgSpeedCsy;
	@Column(columnDefinition="varchar(100) COMMENT '当日平峰运送速度'")
	private String plainAvgSpeed;
	@Column(columnDefinition="varchar(100) COMMENT '当日平峰运送速度同比'")
	private String plainAvgSpeedCsy;
	@Column(columnDefinition="datetime(0) COMMENT '业务统计时间'")
	@JsonDeserialize(using = DateTimeDeserializer.class)
	private DateTime createTime;
}
